<?php
/**
 * Created by PhpStorm.
 * User: wangsentao
 * Date: 2018/1/30
 * Time: 下午3:09
 */

namespace app\open\controller;

use app\common\Model\AliNotifyModel;
use app\api\repository\OrderRespository;


class Alipay
{
    public function notify()
    {
        unset($_REQUEST['s']);

        $model = new AliNotifyModel();

        //验证签名
        $res = $model->verifyPay($_REQUEST);

        if($res){
            echo 'success';
        }else{
            echo "fail";
        }
    }
}